<template>
  <div class="window-analysis-container" style="height: 280px; width: 500px;">
    <!-- 标题栏 -->
    <div class="title-bar">
      <div class="icon"></div>
      <h2>大厅窗口分析</h2>
    </div>

    <!-- 窗口类型统计 -->
    <div class="window-type-section">
      <h3>窗口类型</h3>
      <div class="window-cards">
        <div class="window-card">
          <div class="card-number">99</div>
          <div class="card-label">办事窗口A(个)</div>
        </div>
        <div class="window-card">
          <div class="card-number">99</div>
          <div class="card-label">办事窗口B(个)</div>
        </div>
        <div class="window-card">
          <div class="card-number">99</div>
          <div class="card-label">办事窗口C(个)</div>
        </div>
        <div class="window-card">
          <div class="card-number">99</div>
          <div class="card-label">办事窗口D(个)</div>
        </div>
      </div>
    </div>

    <!-- 窗口使用率 -->
    <div class="window-utilization-section">
      <h3>窗口使用率</h3>
      <div class="progress-bar-wrapper">
        <div class="progress-bar">
          <div class="bar-fill" style="width: 88%"></div>
        </div>
        <div class="progress-text">88%</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'WindowAnalysisPage'
}
</script>

<style scoped>
.window-analysis-container {
  box-sizing: border-box;
  padding: 15px;
  background-color: #0f2035;
  color: #fff;
  font-family: 'Microsoft YaHei', sans-serif;
}

.title-bar {
  display: flex;
  align-items: center;
  background-color: #2c5aa0;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.icon {
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zm0 18.55l-10-5v-2.91l10 5 10-5v2.91l-10 5z'/%3E%3C/svg%3E") no-repeat center;
  background-size: 16px;
  margin-right: 8px;
}

.title-bar h2 {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.window-type-section h3, .window-utilization-section h3 {
  font-size: 13px;
  color: #ccc;
  margin-top: 0;
  margin-bottom: 10px;
  padding-left: 5px;
}

.window-cards {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.window-card {
  width: 22%;
  text-align: center;
}

.card-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 5px;
  border: 2px solid #2c5aa0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  background: radial-gradient(circle at center, #1a3558 0%, #0f2035 70%);
}

.card-label {
  font-size: 12px;
  color: #ccc;
}

.progress-bar-wrapper {
  display: flex;
  align-items: center;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background-color: #444;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 10px;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(to right, #38bdf8, #00ccff);
}

.progress-text {
  font-size: 13px;
  color: #ccc;
  background-color: #1a3558;
  padding: 2px 8px;
  border-radius: 4px;
}
</style>